/** When your routing table is too long, you can split it into small modules **/
import Layout from '@/layout'
const MaterialRouter = {
    path: '/Material',
      component: Layout,
      redirect: '/Material/Material',
      name: 'Material',
      meta: {
        title: 'DS知识库',
        icon: 'excel',
        roles: ['root', 'admin', 'guest' ]
      },
      alwaysShow: true,
      children: [
        {
          path: 'Material',
          name: 'Material',
          component: () => import('@/views/Material/Material'),
          meta: { title: '训练素材', icon: 'dian' }
        },
        {
          path: 'KnowledgeBaseSet',
          name: 'KnowledgeBaseSet',
          component: () => import('@/views/Material/KnowledgeBaseSet'),
          meta: { title: '训练配置', icon: 'dian'}
        },
        {
            path: 'task',
            name: 'task',
            component: () => import('@/views/Material/task'),
            meta: { title: '训练日志', icon: 'dian' }
        },
        {
          path: 'Wordfrequency',
          name: 'Wordfrequency',
          component: () => import('@/views/Material/Wordfrequency'),
          meta: { title: '词频统计', icon: 'dian' }
        },
        {
          path: 'permissionManagement',
          name: 'permissionManagement',
          component: () => import('@/views/Material/permissionManagement'),
          meta: { title: '权限管理', icon: 'dian' }
        }
      ]
}

export default MaterialRouter